package com.example.demo.repository;

import com.example.demo.domain.EsBlog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * es资源库接口
 */
public interface EsBlogRepository extends ElasticsearchRepository<EsBlog,String> {
    /**
     * 分页查询博客去重
     * @param content
     * @param tittle
     * @param summary
     * @param Pageable
     * @return
     */
    Page<EsBlog> findDistinctEsBlogByContentContainingOrTitleContainingOrSummaryContaining(String content, String title, String summary, Pageable Pageable);
}
